package com.chhuang.ewcrm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (SysUser)实体类
 *
 * @author chhuang
 * @since 2020-11-06 08:21:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUser implements Serializable {
    private static final long serialVersionUID = 400281811197981524L;
    /**
     * 用户编号
     */
    private String userId;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 用户姓名
     */
    private String fullname;
    /**
     * 手机号
     */
    private String userphone;
    /**
     * 公司手机短号
     */
    private String usersphone;
    /**
     * 电子邮箱
     */
    private String email;
    /**
     * 头像
     */
    private String userphoto;
    /**
     * 角色编号
     */
    private String roleId;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 登录令牌
     */
    private String loginToken;
    /**
     * 过磅程序登录令牌
     */
    private String wsLoginToken;
    /**
     * app登录令牌
     */
    private String appLoginToken;
    /**
     * 手机clientid推送用
     */
    private String clientid;
    /**
     * 最后登录设备
     */
    private String lastLoginDevice;
    /**
     * 最后登录地址
     */
    private String lastLoginAddress;
    /**
     * 最后登录ip
     */
    private String lastLoginIp;
    /**
     * APP最后登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date appLastLoginTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date appLastLoginTimeStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date appLastLoginTimeEnd;
    /**
     * 过磅程序最后登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date wsLastLoginTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date wsLastLoginTimeStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date wsLastLoginTimeEnd;
    /**
     * 最后登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date lastLoginTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date lastLoginTimeStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date lastLoginTimeEnd;
    /**
     * 状态(1正常)
     */
    private Integer status;
    /**
     * 修改日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date modifyTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date modifyTimeStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date modifyTimeEnd;
    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date createTimeStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale="zh")
    private Date createTimeEnd;


}